/**
 * 基础路由
 * @type { *[] }
 */
export const constantRouterMap = [
  {
    path: '/',
    component: () => import('@/views/layouts'),
    redirect: '/checkin',
    meta: {
      title: '首页',
      keepAlive: false
    },
    children: [
      {
        path: '/checkin',
        name: 'Home',
        component: () => import('@/views/checkin/index'),
        meta: { title: 'home', keepAlive: false }
      },
      {
        path: '/master',
        name: 'Master',
        component: () => import('@/views/checkin/master/index'),
        meta: { title: 'master', keepAlive: false }
      },
      {
        path: '/checkin/form',
        name: 'InputForm',
        component: () => import('@/views/checkin/form/index'),
        meta: { title: 'master', keepAlive: false }
      },
      {
        path: '/checkin/successed',
        name: 'InputSuccessed',
        component: () => import('@/views/checkin/successed/index'),
        meta: { title: 'master', keepAlive: false }
      },
      {
        path: '/about',
        name: 'About',
        component: () => import('@/views/home/about'),
        meta: { title: 'aboutme', keepAlive: false }
      },
      {
        path: '/index',
        name: 'index',
        component: () => import('@/views/home/home'),
        meta: { title: 'index', keepAlive: false }
      },
      {
        path: '/login',
        name: 'Login',
        component: () => import('@/views/login/index'),
        meta: { title: 'index', keepAlive: false }
      },
      {
        path: '/login/wechat',
        name: 'LoginWeChat',
        component: () => import('@/views/login/wechat/index'),
        meta: { title: 'index', keepAlive: false }
      },
      {
        path: '/oauth/wechat',
        name: 'oauthWechat',
        meta: { title: '微信授权', keepAlive: false },
        component: () => import('@/views/oauth/wechat.vue')
      },
      {
        path: '/login/wechat/callback',
        name: 'WeChatCallback',
        component: () => import('@/views/login/wechat/callback/index'),
        meta: { title: 'index', keepAlive: false }
      },
      {
        path: '/qrcode/feferee',
        name: 'qrcodeReferee',
        meta: { title: '微信授权', keepAlive: false },
        component: () => import('@/views/qrcode/promote/index.vue')
      }
    ]
  }
]
